package staticdemo;

import java.util.ArrayList;
import java.util.List;

public class StaticDemo {
	private static final int A = 1;
	
	static final StaticDemo SD = new StaticDemo(A);
	public static final List<StaticDemo> DEMOS = new ArrayList<StaticDemo>();
	static {
		System.out.println("Value in static :" + SD.value);
//		System.out.println("Value in static :" + StaticDemo1.CHILD_DEMO_1.getValue());
	}
	private final int value;
	StaticDemo(int value) {
		System.out.println("Value in structure :" + value);
		this.value = value;
	}
	public int getValue() {
		return value;
	}
	
	
}
